<ion-header>
  <ion-navbar>
    <ion-title class="my">我的工作管理</ion-title>
    <span class="reorder-opt" (click)="reorder()">{{ canReorder ? '完成' : '排序' }}</span>
  </ion-navbar>
</ion-header>
<ion-content class="card-reorder-wrap">
  <ion-list>
    <ion-item-group [reorder]="canReorder" (ionItemReorder)="reorderItems($event)">
      <ion-item class="cs-platform" *ngFor="let card of userCardList" >
        <img [src]="'assets/imgs/' + iconByCard[card.name].icon" alt="">
        <div class="platform-name">{{card.name}}</div>
        <div [class]="'platform-botton ' + (card.isAvailable ? 'btn-delete' : 'btn-add')" (click)="saveUserCard(card)">
          <div>{{card.isAvailable ? "删除" : "增加"}}</div>
        </div>
      </ion-item>
    </ion-item-group>
  </ion-list>
</ion-content>